export const statusType = (status, deal, type) => {
  let content
  switch (status) {
    case 1:
      content = deal === 0 ? '已支付' : '已接单'
      break
    case 2:
      content = '已到店'
      break
    case 3:
      content = type === 1 ? '已离店' : '已核销'
      break
    case 4:
      content = '已完成'
      break
    case 5:
      content = '售后中'
      break
    default:
      content = '已处理'
      break
  }
  return content
}

export const payType = (str) => {
  let content
  switch (str) {
    case 'wepay':
      content = '微信支付'
      break
    case 'alipay':
      content = '支付宝支付'
      break
    case 'balance':
      content = '余额支付'
      break
    case 'deposit':
      content = '储值支付'
      break
    case 'consume':
      content = '消费额支付'
      break
    default:
      content = '待反金支付'
      break
  }
  return content
}
